package it.polimi.swKnights.SWIMv2.ejb.administration;

import it.polimi.swKnights.SWIMv2.ejb.exceptions.AlreadyAdminException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.InvalidLoginPrivilegesException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.LoginFailException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.NoSelfRemoveException;

import javax.ejb.Remote;

@Remote
public interface NominateAdminRemote
{

	void nominateNewAdmin(String user, String founder, String password)
			throws LoginFailException, InvalidLoginPrivilegesException,
			AlreadyAdminException;

	void removeFromAdmins(String user, String founder, String password)
			throws LoginFailException, InvalidLoginPrivilegesException,
			NoSelfRemoveException;

}
